Total work done here against two forces
1. Work done against gravity
2. work done against friction
Here work done against gravity is given by

here we know that weight of the block will be



now we will say

as we know that total work



so work done against friction is 1 J