1) Make sure your city doesnt grow too fast ( some micromanagemt is needed here )
2) get some more goods ( trade with your neighbour, claim them with settlers,...)
3) City Improvements/ civics
the "unhappiness" by overcrowding" itself can't be fixed, its just related to your city's size ( size 10 = 10 unhappy guys )