fixed writing of last traj frame
Merge branch 'glb_opt' of github.com:olee/cp2k_dev into glb_opt