isamd write and read functions ok, except when diff block full.