Mario Balotelli kept his cool from the penalty spot to open the scoring for Nice as they hosted Dijon in Ligue 1.