IF the fire is on the main deck, and NOT in a container that has fire extinguishing, AND, you are truely at a low altitude close to the departure airport; you turn around and land ASAP! Don't get wrapped up in putting the fire out; get wrapped up in saving YOUR arse!
As in previous threads; you have about 17 minutes to get the plane on the ground. Use that time wisely!