Hallo!
You can Cheat Dirt with a Oak Barrel and a Crafting Station.
Place a Oak Barrel and place a Crafting Station next do the Barrel.
Click on the Station, you can see the slots of the Barrel.
So.
Fill the Barrel with Rotten Flesh.
Wait until its finish.
Click on the Station.
you can see one Dirt in one of this slots.
click with shift and right click on the dirt.
you can see, the station and every empty slot in your inventory is full with stacks of dirt.
sorry my english isn't the best.