Only the top-right side of the city (near the mountain & water) can be entirely blocked by buildings. The other three edges of the city have an extra tile of space where attackers can always drop troops. Otherwise, when the city is full of buildings, there will be no space available to drop any troops. 

We will improve the experience to avoid confusion in the future updates.