By contradiction:
Pick $d$ "large enough" and let $i$ be the inclusion from the circle $C_d$ with radius $d$ to the closed ball $B_d$ of radius $d$ (centered at the origin).
Consider the continuous map $g:B_d\rightarrow C_d$ defined by $g(x)=df(x)/|f(x)|$.
Consider the map $C_d\overbrace{\rightarrow}^i B_d\overbrace{\rightarrow}^{g} C_d$.
Now consider the induced homomorphisms on the fundamental groups. Since $B_d$ is simply connected the composition of the induced homomorfisms must be the trivial homomorphism. In other words if we take the loop consisting one trip around the circle this must map to a trivial loop. Clearly if $d$ is larger than $M$ this will be impossible.
Just to make this clear we can show that a loop $l$ is homotopic to the loop $(i\circ g)_*l$. We need a homotopy $H:C_d\times I\rightarrow C_d$ such that $H$ is $l$ in $C_d\times \{0\}$ and $(g\circ i)_*l$ in $C_d\times \{1\}$. All you have to do to define $C_d(x,t)$ is consider the small ark between $x$ and $g(x)$ (this is well defined because $d>M$ and so the point cannot move across the circle), to prove the function is continuous it suffices tu use the $\epsilon-\delta$ definition.