This isn't a new idea. This is a problem that every nuclear sub deals with. From what I can gather, fresh water runs inside the reactor in two separate zones, and after powering the steam turbine goes into the condenser which is cooled by seawater.
However it works, this problem has been solved for decades.