Thermally assisted recording using an auxiliary energy source for heating the recording layer locally to assist the magnetization reversal