How to convert soil moisture units from meteorological model?
Your method looks OK, however, water density varies with temperature.

Not knowing exactly what your aim is or how accurate/fussy you want to be, you may want to consider using the density of water for its temperature rather than accepted average of $1000 kg/m^3$.