$a^4 = b^4 \not \implies a = b$ as $x^4 = k>0$ will have two real solutions $\sqrt[4]{k}$ and $-\sqrt[4]{k}$ so it will be possible that $a = -b \ne b$ yet $a^4 = (-b)^4 = b^4$.
So that's no good.
Indeed the ONLY reason one should square both sides to solve an equation is to allow for opposite signs of values to become equivalent and to be ignored. Squaring both sides ADDS extra, not necessarily correct "solutions".
$x = 5$ has one solution.
$x^2 = 5^2$ has two solutions.
$x = 5$ OR $x = -5$. $x = -5$ is an added extraneous solution. Watch out for those.
.....
Anyway....
Surjection is the easy part.
Let $w \in \mathbb R$
Let $sign(w) = -1$ if $w < 0$ and $sign(x) = 1$ if $w \ge 0$.
Let $x = sign(w)*\sqrt{|w|}$.
The $|x| = \sqrt{|w|}$ and $x*|x| = (sign(w))*\sqrt{|w|}*\sqrt{|w|} = sign(w)*\sqrt{|w|^2} = sign(w)*|w| = w$.
Now go back and fix your proof that it is injective.