Batteries contain their own oxidiser and fuel, so the only way of extinguishing a better fire is to remove the heat (fire triangle: fuel, oxidiser, heat).
The best lay-person's method for extinguishing battery fires is flooding with cold water, which will be hard on an airplane at the best of times.