TORONTO (Reuters) - BlackBerry Ltd said on Friday it was entering a handset production deal that lowers the risk it will have to take more massive writedowns on unsold smartphones, and its shares surged even though it posted dismal quarterly results.