Write private key