Readability improvements
Add set for tracking pending writes from clients
Remove updated keys check

If selectedKeys() returns an empty list, the rest of the method will
not run anyway.
Send messages with pending writes
Call processPendingWriters() in main loop