I would shoot in manual mode, bounce the flash of something big and white like the ceiling or a wall and (ideally) filter the flash with a half cto gel. Then you could leave the cake neutral to very slightly warm and let the candle flames be warm in shade, which is what we expect.
If you do it with digital you could dial it in in a few shots - first without flash set the manual exposure to get the flames right and then add enough flash to fill the blackness. Harder with film, unless you use a mnual flash setting.
Mike
edied to add -
Strobist is a good resource for falsh use.