Hi, i have seen them get like that most of the time in the store. They pick them way to green for transport reasons ,while they are hard as rocks they stay green, but when thet start ripening and softening ,they get this black/dark brown color to them. The flesh does not get affected colour wise, but the flavour i feel is not what it should be.
I dont know how goes the proces with ripening a fruit picked at the right time from a tree, but i guess blackening is due to the fruits picked way to green....
Maybe yours are picked too green ??