write to N and wait W confirmations