The golden rule is, something will sink if it's heavier than the water it is displacing. Therefore, a bowling ball would sink, but a football would float. In the case of a ferry, gravity pushes down on the boat, but buoyancy helps it stay afloat as it's not as heavy as the space it's taking up.