Most likely your approach cannot be made rigorous at this point in your course. (Of course, $x$ is indeed $3\sqrt{3m}$. But have you discussed square roots yet? You get $\sqrt{3m}=x/3$. Why does it follow from this, which only says that $\sqrt{3m}$ is a rational number, that in fact it must be a natural? That this gives that $m$ is $3^o$ for some odd number $o$ is incorrect. Anyway, I suspect you have not yet discussed prime factorization. )
I would suggest to use your direct approach, but try to argue as follows (which I see is very similar to a couple of other answers):
If $27$ divides $x^2$, then $x^2=27m$ for some integer $m$. Since $3\mid 27m$, then $3\mid x^2$, and therefore $3\mid x$ (Why? This is the key point).
Say, $x=3k$. From $x^2=27m$ we get $9k^2=27m$, or $k^2=3m$, so $3$ divides $k^2$, so $3$ divides $k$ (Again, why?).
Say, $k=3j$. We then have $x=3k=9j$.