write () spec fix