Beaglebone black external EEPROM memory address....

Hi.
I have connected EEPROM AT24C512 with i2c-1 of Beaglebone black. By giving “i2cdetect -y -r 1” i am getting my device address as 0x50. whenever i am trying to write using “i2cset -y 1 0x50 0x00 0x12” the value 0x12 is not writing in the corresponding memory address 0x00. while reading by “i2cget -y 0x50 0x00” iam getting always 0xff. So please tell me the way of writing to the EEPROM with particular memory address.

Thank you,
Sakthivel R.