You're talking past one another. The other poster is discussing a correspondence between N and S, where S is the set of squares. So the function being discussed is f: N -> S, f(n) = n^2, which is obviously bijective.
You seem to be talking about the function f: N -> N, which isn't surjective, but I don't see the relevance. Any surjective function can be made non-surjective by considering a larger range.