Should be K + (1/2)O2 -----> K2O
I think it would help if we knew the NAME of the product expected. If it's potassium oxide, then the formula would be K
2O. If it's potassium peroxide, then it would be K
2O
2. If it were potassium superoxide, then it would be KO
2.
So then you would know how it should be properly balanced and what you need to find. The way you could calculate the heat of formation is to use a bomb calorimeter and perform the experiment. Then using the proper math you can calculate the heat generated per mass of product formed, and from that you can get the heat generated per mole of product which is the standard heat of formation.
When attempting to calculate the delta H of formation, mass IS important. If you react 50 grams of potassium completely, you need to calculate the mass of product that will be formed. Then you take the mass of the product that is formed and figure out the moles of product. You can then take the heat measured for that number of moles of product and convert to heat of formation for ONE mole of product.