Adding salt to the water increases the mass of the water without changing the volume too much. So the water becomes denser. When you add enough salt, the water can become denser than the grapes. Therefore, grapes can float in the saturated salt water.