Fix gf_asprintf return val check in glusterd_store_peer_write

Change-Id: Id629f5cb76799b1128cc1cab4b24334dae9b1c29
Set first hostname in peerinfo->hostnames to peerinfo->hostname

Change-Id: Icf542e68cc210edeffb2cd1f4b58cc4bfc6389f0