I think he blew out the candle beause it reminded him of the Bishop's and his conversation. Valjean didn't want the candle to bring up his conscience and lean towards a decision for him. The candle made him think of his commitment towards God and doing the right thing.