Backfire is caused when your bike is running rich in fuel
too rich is when there it too much fuel going into the cylynder and not all of the fuel burns off which causes the excess fuel that isnt used blow out of the exhaust pipe
a little tuning at a local shop will solve the issue, its not the spark plugs