The mum of a child with inoperable brain cancer has had crippling debt written off by her energy company.