Can a One way function also be its inverse?
One-way function doesn't mean that it's impossible to reverse on EVERY output.
One-way function means that's it's hard to invert on an output picked at random over the set of the outputs.

You can read in more details the definitions given in the following link:

https://crypto.stanford.edu/pbc/notes/crypto/oneway.html