The fresh water in the river is slightly less dense than the ocean's brine. So in order to displace its weight of water, the ship must displace more of it. That means it sinks slightly lower in fresh water before the displaced water totals up to the ship's weight.