A fatal overdose in Pelham led to the arrest of an alleged dealer after police used the victim's cellphone to text him, police said.