Fire only burns when that chunk is loaded. So what you can do is run away from it, and when you're a few chunks away, leave the world and come back and keep running home. The fire won't load and you'll have time. Exit a few time to make sure (or use an editor to just move you away from it).
Then just make a fire break round your house.