@Override
  public void deleteRecord(int record) throws IOException {
    final int sizeAndCapacityOfRecordAbsoluteOffset = getOffset(record, SIZE_AND_CAPACITY_OFFSET);
    final int sizeAndCapacityValue = myStorage.getInt(sizeAndCapacityOfRecordAbsoluteOffset);

    final int addressOfRecordAbsoluteOffset = getOffset(record, ADDRESS_OFFSET);
    final int existingAddressValue = myStorage.getInt(addressOfRecordAbsoluteOffset);

    super.deleteRecord(record);

    if (sizeAndCapacityValue < 0) {
      super.deleteRecord(-sizeAndCapacityValue);
    }

    if (existingAddressValue < 0) {
      super.deleteRecord(-existingAddressValue);
    }
  }
@Override
  public void deleteRecord(int record)