flash/nor/lpc2000: free allocated working area when target_write fails