Fixes WRITE function SEGFAULT

Forgot to initialize my vector. Oops.