Wright pleads no contest to deadly stabbing