updated RAID4

Update code for
*prevents writing more than (total blocks) number of times
 ex. if we have total of 10 blocks, we cannot write more than 10 times