fix writeOUTCAR lattice