Add multiple writer threads to improve throughput

Refer https://jira.corp.inmobi.com/browse/SCRIBE-37
check for success as the first condition inside if