Filling in a small ditch
If your available tools include a sledgehammer, just use that, held vertically, head down, pick it up and drop it, repeatedly, every 2 or 3 inches of soil fill (you cannot effectively tamp thicker layers of soil with hand tools.) 

Forget the wood block.