Answer
$W_{g}=mgd$
Work Step by Step
By definition, we know that $W=Fdcos\omega$.
The block is going down, so the angle $\omega$ between the displacement and the gravitational force is $0^{\circ}$
The gravitational work is $W_{g}=mgdcos\omega=mgdcos(0^{\circ})=mdg$.