Write intermediate ballot file while parsing.