In case of asynchronous I/O if there is an error in writing to a block, then how this is taken care of

This is the reason there are events called wait events.