Here you go. Earth is not blocking sunlight, it's just position of the moon relative to the earth that creates that effect of the dark side. When the moon comes more in front of the earth you will have New Moon (exception Solar eclipse) and when it goes back you will have Full Moon (exception Lunar eclipse).