changed write function of rcu-sh to read back the value after write