Created a method to write the first data block