Lenovo posts $189m full-year loss on one-time write-off