probably the easiest thing is to take 2 exposures - one for highlights one for shadows and blend them together somehow
another idea is to use like f16 for 20 seconds (or whatever it works out as) and blow out the candle 1/2 way though (assuming there is ambient light also)
experiment is the key
Sil