write ID file in user directory