Writing of nanowires via high viscosity-induced nano diffusive layer