Quorum Commands refactored but write is not taking place correctly