We know that the hyperbolic unit disk metric, $d(z, w) := |\frac{z - w}{1 - \bar{w}z}|$, satisfies $d(g(z), g(w)) \le d(z, w)$ for analytic maps $g : \mathbb{D} \to \mathbb{D}$. Note that $|\frac{f(z)}{3}| \le 1$ when $|z| < 1$, and the maximum principle implies we can assume $|\frac{f(z)}{3}| < 1$, otherwise $|\frac{f(z)}{3}|$ is constantly $1$, contradicting $f(\frac{1}{2}) = 2$. Hence
\begin{align*}
\left|\frac{\frac{2}{3} - \frac{f(0)}{3}}{1 - \overline{\frac{f(0)}{3}}\cdot \frac{2}{3}}\right| = d(\frac{2}{3}, \frac{f(0)}{3}) = d(\frac{f(\frac{1}{2})}{3}, \frac{f(0)}{3}) \le d(\frac{1}{2}, 0) = \frac{1}{2}.
\end{align*}
If we assume that $|\frac{f(0)}{3}| \le \frac{2}{3}$, then the triangle inequality applied twice implies
\begin{align*}
\frac{2}{3} - \frac{|f(0)|}{3} \le \frac{1}{2} + \frac{|f(0)|}{9}.
\end{align*}
Simplifying this implies $|\frac{f(0)}{3}| \ge \frac{1}{8}$. This inequality also holds with the negation of our assumption, and so it holds generally.
Recall that $\phi_a (z) := \frac{z - a}{1 - \overline{a}z}$ is a conformal map $\mathbb{D} \to \mathbb{D}$ which swaps $a$ and $0$. So $\phi_{\frac{f(0)}{3}} \circ (\frac{f}{3})$ maps $0$ to $0$. The Schwarz lemma implies
\begin{align*}
\frac{|\frac{f(0)}{3}| - |\frac{f(z)}{3}|}{1 + |\frac{f(0)}{3}||\frac{f(z)}{3}|} \le \frac{\left||\frac{f(0)}{3}| - |\frac{f(z)}{3}|\right|}{1 + |\frac{f(0)}{3}||\frac{f(z)}{3}|} \le \left| \frac{\frac{f(z)}{3} - \frac{f(0)}{3}}{1 - \overline{\frac{f(0)}{3}} \cdot \frac{f(z)}{3}} \right|= |\phi_{\frac{f(0)}{3}}(\frac{f(z)}{3})| \le |z|.
\end{align*}
Rearranging this inequality implies
\begin{align*}
\frac{|\frac{f(0)}{3}| - |z|}{1 + |\frac{f(0)}{3}||z|} \le |\frac{f(z)}{3}|.
\end{align*}
If $|z| < \frac{1}{8}$, then $|\frac{f(0)}{3}| \ge \frac{1}{8}$ implies the first term in the above inequality is nonzero. And so we finally conclude that $f(z) \neq 0$ if $|z| < \frac{1}{8}$.