I assume we are working in a finite dimensional inner product space V. What your proof is missing is the well known fact that if $f:V \to V$ and $g:V \to V$ are linear transformations with $<f(v),w>=<g(v),w>$ for all $v,w \in V$, then $f=g$.
To prove this fact, let $\{e_1, ..., e_n\}$ be an orthonormal basis of $V$ (you can construct one via the Gram-Schmidt process). Then for each $v \in V$ we have the identity $v= \sum_{i=1}^n<v,e_i>e_i$. In particular $$f(e_j) = \sum_{i=1}^n <f(e_j), e_i>e_i = \sum_{i=1}^n<g(e_j),e_i>e_i = g(e_j)$$ Thus, $f$ and $g$ agree on a basis, so they are equal.