Added setDataBolks method for writing to internal storage.