They ate as much as they wanted. They needed to make the ship lighter. So they threw the rest of the grain into the sea.