Suppose $f(z)$ is analytic in the open unit disc and $|f(z)|<1$ there. Suppose further that $f(0) =0$ and $f'(0) = a \neq 0$. Show that there is a disc of positive radius $|z|<\rho$ such that for $z_1$ and $z_2$ in the disc, $$f(z_1)=f(z_2) \Longrightarrow z_1=z_2.\tag{1}$$ Find an estimate for $\rho$. Try to make the estimate as sharp as you can. Hint: $$f(z_2)-f(z_1) = \int_{z_1}^{z_2}f'(z)dz = a(z_2-z_1)+ \dotsb .$$
My answer so far: I can show (1) in a neighborhood of zero as follows: $z=0$ is an isolated zero of $f$ by the isolated zero theorem (note $f$ is non-constant since $f'(0)\neq 0$). Therefore there is a closed neighborhood $\overline{B_{\rho}(0)}$ of zero such that $f\neq 0$ on the punctured disc $\overline{B_{\rho}(0)} \setminus \{0\}$. Let $M = \max_{z\in \partial{B_{\rho}(0)}}|f(z)|$. Now for $w\in B_{M}(0)$, we have that $|f(z)-0|> |w-0|$ for $z\in \partial B_\rho(0)$, so $f(z)-0$ and $f(z)-0 + (w-0)=f(z)-w$ have the same number of zeros in $\overline{B_{\rho}(0)}$, meaning that $f$ is one-to-one there.
For the estimate, I'm having more trouble. I know by Schwarz's theorem that $|f(z)|<|z|$ in the disc, and $a<1$, unless $f(z)=\lambda z$ for $\lambda \in S^1$, in which case both are equalities. But how can I use this?
If I try to use the hint, I get (I think) $$f(z_2)-f(z_1) = a(z_2-z_1)+ \frac12 f''(0)(z_2^2 - z_1^2) + \dotsb$$ but I'm not sure what to do with this.