2 errori, il while ha come condizione

while(i->next != NULL)

e

quando stampi non mandi avanti la i

dovresti fare i=i->next

ciauz!!