Spanish emergency services have largely put out a fire aboard a vehicle transport ship off the island of Mallorca after some of the crew were airlifted to safety earlier on Wednesday.