write private key