hello and thanks for the query,
well there is no magical cure or formula for weight loss
so you would require to lose the weight the right and hard way by working out and a proper diet and as far as hair loss is concerned it is due to various reasons like stress
,etc and since you say frontal baldness
if it is not extensive it is normal in males called andropecia which is due to increased hormones which maybe due to the obesity that you are suffering from so I would suggest you to take up a healthy diet , work out lose weight I think all your problems will get solved.