added writeFile()

function write to file cart.txt any change to Stock