What you are describing is a recognised bug rather than something you have done wrong. With four witch heads in hand and the fire refusing to trigger, the cure sequence simply will not advance.
The usual cause is having started the ritual at the wrong point in the Companions quest line. It is meant to be carried out alongside curing Kodlak, and if that window has passed, the interaction can silently fail.
For now the practical answer is to wait for a patch, since the trigger cannot be forced from the player side. On future characters, do the ritual at the same time as Kodlak's cure and it goes through cleanly.