Mario Balotelli's late strike ensured Nice got their first win in four Ligue 1 games, as they overcame Guingamp 3-1 on Sunday.