The hole wasn’t so black, and I found a way out.I escaped to the shore and hid among the graves.I was wishing I was in one when I first saw my boy!
As Saparris said, ‘one’ is a pronoun, and it refers to ‘graves,’ the word mentioned in the previous sentence.
I was wishing I was in a grave when I first saw my boy.