Rewriting magnetic phase change memory by laser heating