In the friction layer, the turbulent friction that the Earth exerts on the air slows the wind down. This slowing causes the wind to be not geostrophic. As we look at the diagram above, this slowing down reduces the Coriolis force, and the pressure gradient force becomes more dominant. As a result, the total wind deflects slightly towards lower pressure. The amount of deflection the surface wind has with respect to the geostrophic wind above depends on the roughness of the terrain.
Meteorologists call the difference between the total and geostrophic winds ageostrophic winds.
Credits and Acknowledgments for WW2010.