fixed bug in AarfWriter where the given filename was not honored