Fix eco transform

Using `var write = function() { ... }` instead of `function write() { ... }` *after* the return means that the eco transform returns `through(undefined, undefined)`.

Using the second form makes things work as expected (function hoisting).