I do know WW2 subs had torpedo compensation tanks which would flood when the torpedoes launched, in order to keep the weight the same so the boat wouldn't broach, dunno about modern boats though, as losing a torpedo's weight on a modern boat would be a very small percentage of the overall weight, so it could probably be sorted with the normal trim tanks I would guess.

Chock