A Bali-bound flight was forced to turn around and make an emergency landing in Melbourne after an engine failed during take-off.