I should have written yesterday, when it occurred, but I was so ill that I felt myself unable to make the exertion. 
I would have written yesterday, when it occurred, but I was so ill that I felt unable to. 