Extract writeBackLoop method from helpWriteBack to enable overriding

   Also add a constructor to WriteSet reuse from subclass.