A man who drank alcohol on an overnight ferry to the Isle of Man before driving off the vessel has been jailed for 15 months.